<template>
  <div>
    <h1>defineProps 和 defineEmits</h1>
    <Son name="西厢记" author="晨光斯基" :price="58.2" 
        @change="changeFn"
        @edit = "eidtFn"
    ></Son>
  </div>
</template>

<script setup>
import Son from "./Son.vue";

function changeFn(str){
    console.log("changFn",str);
}
function eidtFn(str,num){
    console.log("eidtFn",str,num);
}

</script>

<style scoped>

</style>